﻿//by  张海军 710605420@qq.com
using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using UnityEngine;

namespace LazyFramework
{

    public class Main : MonoSingleton<Main>
    {
        public static EntityManager entityManager = null;

        private void Awake() 
        {
            entityManager = World.Active.EntityManager;
            UGUIManager.Instance.Initialize();
        }

       
        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
        public static void Initialize()
        {
            AssetBundle.UnloadAllAssetBundles(false);
            Resources.UnloadUnusedAssets();
            System.GC.Collect();
        }
        [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
        public static void InitializeAfterSceneLoad()
        {

        }
        // Use this for initialization
        void Start()
        {
            UGUIManager.Instance.Open(UIType.UITest);
        }

      
    }

}
